CurrentUser Property (Session Object) 

The CurrentUser property returns the active user as an AddressEntry1O6Y3BK object. Read-only.

Syntax

objSession.CurrentUser

Data Type

Object

Remarks

The CurrentUser property returns Nothing when no user is logged on.

Example

The example logs on if necessary, then creates strings containing information about the current user:

    If objSession Is Nothing Then

        MsgBox ("Must log on first")

        Exit Function

    End If

    Set objAddrEntry = objSession.CurrentUser

    If objAddrEntry Is Nothing Then

        MsgBox "Could not set the address entry object"

        Exit Function

    Else

        MsgBox "full address = " & objAddrEntry.Type & ":" _

                 & objAddrEntry.Address

    End If

 

See Also

AddressEntry Object1O6Y3BK